package com.pingan.stat.service;

import com.pingan.common.util.ShellExecutor;

public class TaskRunnable {

	private final String shell;

	private final String[] params;

	private final ShellExecutor shellExecutor;

	public TaskRunnable(String shell, String[] params,
			ShellExecutor shellExecutor) {
		this.shell = shell;
		this.params = params;
		this.shellExecutor = shellExecutor;
	}

	public void run() {
		shellExecutor.excecute(shell, params);
	}

}
